package com.yitiao.data_algorithms.leetcode.editor.cn;

class FactorialTrailingZeroes {
    // 2023-05-04 10:57:01
    public static void main(String[] args) {
        Solution solution = new FactorialTrailingZeroes().new Solution();
    }

    //leetcode submit region begin(Prohibit modification and deletion)
    class Solution {
        public int trailingZeroes(int n) {
            int count = 0;
            while (n > 0) {
                count += n / 5;
                n = n / 5;
            }
            return count;
        }
    }
//leetcode submit region end(Prohibit modification and deletion)

}